package routers

import (
	"clouds/controllers"
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/context"
	"fmt"
)

func FilterToken(ctx *context.Context)  {
	fmt.Println(ctx.Input.Header("token"))
}
func init() {
	beego.InsertFilter("/^login", beego.BeforeRouter, FilterToken)
    beego.Include(&controllers.UserController{})

}
